package top.yifengxiner.blockchain.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author ：baixiao
 * @date ：Created in 2021/5/11 17:29
 * @description：学位证书
 * @modified By：
 * @version: 0.0.1$
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("diploma")
public class Diploma
{
    /*学位ID*/
    @TableId(value = "diploma_id",type = IdType.AUTO)
    private Long diplomaId;
    /*学生ID*/
    @TableField("user_id")
    private Long userId;
    /*学生姓名*/
    @TableField("user_name")
    private String username;
    /*学位名称*/
    @TableField("diploma_name")
    private String diplomaName;
    /*颁发时间*/
    @TableField("issue_time")
    private Date issueTime;
    /*教育机构*/
    @TableField("edu_institution")
    private String eduInstitution;
    /*哈希值*/
    @TableField("hashcode")
    private String hashcode;
    /*有效标志*/
    @TableField("exist_flag")
    private char existFlag;
}
